package mylibrary.collection;

public class Item implements Comparable{

	private String name;
	private String age;
	
	public Item(String name, String age) {
		this.name = name;
		this.age = age;
	}
	
	public boolean equals(Object obj) {
		return true;
	}
//	public int hashCode() {
//		return 0;
//	}

	@Override
	public int compareTo(Object o) {
		if(o instanceof Item) {
			return ((Item)o).getAge().compareTo(age);
		}
		return 0;
	}
	public String getAge() {
		return this.age;
	}
	
}
